package com.example.tests;

public class PrintPhonesData implements Comparable<PrintPhonesData> {
	private String firstName;
	private String lastName;
	private String homePhone;
	private String mobylePhone;
	
	public PrintPhonesData(){
	}

	@Override
	public int compareTo(PrintPhonesData other) {
		return this.firstName.compareTo(other.firstName);
	}

	@Override
	public String toString() {
		return "PrintPhonesData [firstName=" + firstName + ", lastName="+ lastName + "" +
				", homePhone=" + homePhone + ", mobylePhone=" + mobylePhone + "]";
	}



	public PrintPhonesData withFirstName(String firstname) {
		this.firstName = firstname;
		return this;
	}

	public PrintPhonesData withLastName(String lastname) {
		this.lastName = lastname;
		return this;
	}

	public PrintPhonesData withHomePhone(String homephone) {
		this.homePhone = homephone;
		return this;
	}

	public PrintPhonesData withMobylePhone(String mobylephone) {
		this.mobylePhone = mobylephone;
		return this;
	}

	public String getFirstName() {
		return firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public String getHomePhone() {
		return homePhone;
	}

	public String getMobylePhone() {
		return mobylePhone;
	}
}
